import React from 'react';
import { HashRouter as Router, Route, Switch } from "react-router-dom";
import MainPage from '@page/main';
import LoginPage from '@page/login';
import store from './store';
import { Provider } from 'react-redux';

const App = () => {
    return (
        <Provider store={store}>
            <div className="app-container">
                <Router>
                    <Switch>
                        <Route exact path='/' component={LoginPage} />
                        <Route path='/main' component={MainPage} />
                    </Switch>
                </Router>
            </div>
        </Provider>
    )
}

export default App;